package com.dawn.utils.listeners;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import weibo4j.Weibo;

public class ProjectListener implements ServletContextListener {

	public void contextDestroyed(ServletContextEvent arg0) {

	}

	/**
	 * 服务器启动时候的初始化工作
	 */
	public void contextInitialized(ServletContextEvent arg0) {
		System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
		System.setProperty("weibo4j.oauth.consumerSecret",
				Weibo.CONSUMER_SECRET);
	}

}
